package com.bhms.module.users.users.service;

import java.util.List;

import com.bhms.module.users.users.mapper.Roles;
import com.bhms.module.users.users.mapper.RolesMapper;

public class RoleServiceBean implements RoleService {

	private RolesMapper rolesMapper;

	/**
	 * 查询角色业务处理方法
	 * 
	 * @return
	 */
	@Override
	public List<Roles> searchRole(Roles roles) {
		int totalCount = rolesMapper.count(roles);
		roles.setTotalLine(totalCount);
		return rolesMapper.select(roles);
	}

	/**
	 * 删除角色业务处理方法
	 * 
	 * @param roles
	 */
	@Override
	public void findRole(Roles roles) {
	}

	/**
	 * 编辑角色业务处理方法
	 * 
	 * @param roles
	 */
	@Override
	public void editRole(Roles roles) {
	}

	/**
	 * 删除角色业务处理方法
	 * 
	 * @param roles
	 */
	@Override
	public void deleteRole(Roles roles) {
	}

	public void setRolesMapper(RolesMapper rolesMapper) {
		this.rolesMapper = rolesMapper;
	}
}
